<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">
	
function move({x = 0, y = 0} = {}) {
	return [x, y];
}
console.error(move({ x: 3, y: 8 }));
console.error(move({ x: 3 }));
console.error(move({}));
console.error(move());

console.error("------------------------");

function move1({ x, y} = { x: 0, y: 0 }) {
	return [x, y];
}
console.error(move1({ x: 3, y: 8 }));
console.error(move1({ x: 3 }));
console.error(move1({}));
console.error(move1());


</script>

</body>
</html>